@extends('admin.layout.layout', ['row' => @$page])

@section('contain')


    <div class="portlet">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green-sharp bold uppercase">{{ @$page['title'] }}</span>
            </div>
            <div class="actions">
                <div class="item">
                    <a href="/{{ request()->path() }}/create" class="btn btn-sm btn-primary">新增</a>
                </div>
            </div>
        </div>

        <div>
            <h3 class="section_sub_title">基础信息</h3>
            <table class="table table-s1">
                <tbody>
                <tr>
                    <td style="width: 200px;">省代账号</td>
                    <td>{{ $data->unique_id }}</td>
                </tr>
                <tr>
                    <td>省代名称</td>
                    <td>{{ $data->company_name }}</td>
                </tr>
                <tr>
                    <td>联系人</td>
                    <td>{{ $data->first_name }}</td>
                </tr>
                <tr>
                    <td>电话号码</td>
                    <td>{{ $data->phone_number }}</td>
                </tr>
                <tr>
                    <td>电子邮箱</td>
                    <td>{{ $data->email_address }}</td>
                </tr>
                <tr>
                    <td>当前状态</td>
                    <td>
                        {{ $data->status }}
                        <span class="btn btn-primary btn-sm ml-3" data-toggle="modal" data-target="#changeStatus">变更状态</span>
                    </td>
                </tr>
                </tbody>
            </table>
            <h3 class="section_sub_title">地域信息</h3>
            <table class="table table-s1">
                <tbody>
                <tr>
                    <td style="width: 200px;">区域</td>
                    <td>{{ __('region_master.'.$data->region_id) }}</td>
                </tr>
                <tr>
                    <td>省</td>
                    <td>{{ __('province_master.'.$data->province_id) }}</td>
                </tr>
                <tr>
                    <td>城市</td>
                    <td>{{ __('cities.'.$data->city) }}</td>
                </tr>
                </tr>
                </tbody>
            </table>
            {{ \Illuminate\Support\Facades\App::getLocale() }}
        </div>

        <div class="modal fade" id="changeStatus">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title">模态框头部</h4>
                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                    </div>
                    <div class="modal-body">
                        模态框内容..
                    </div>
                </div>
            </div>
        </div>

    </div>


@endsection